package com.ruoyi.system.xxljob;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class JobTest {

    @XxlJob("jobTestHandler")
    public void jobTestHandler() {
        XxlJobHelper.log("xxl job test");
        log.info("xxl job test success");
    }

}
